import {myRequest} from './http.js';

// 获取oss签名信息 
export function getOssInfo(data){
	return myRequest({
		url:'/api/User/getOssKey',
		method:'post',
		data:data
	})
}

// 获取接单列表
export function getOrderList(data){
	return myRequest({
		url:'/api/Driver/getDriverOrderList',
		method:'post',
		data:data
	})
}

// 获取订单详情
export function getOrderDetail(data){
	return myRequest({
		url:'/api/Driver/getDriverOrderDetail',
		method:'post',
		data:data
	})
}

//司机接单
export function receiveOrder(data){
	return myRequest({
		url:'/api/Driver/driverOrder',
		method:'post',
		data:data
	})
}

// 司机确认送达
export function orderArrive(data){
	return myRequest({
		url:'/api/Driver/driverConfirmOrder',
		method:'post',
		data:data
	})
}

// 司机确认送达
export function orderRefuse(data){
	return myRequest({
		url:'/api/Driver/driverRefuse',
		method:'post',
		data:data
	})
}